package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"login/controllers"
)

func init() {
	beego.Router("/register", &controllers.MainController{}, "post:Register")
	beego.Router("/login", &controllers.MainController{}, "post:Login")
	beego.Router("/add", &controllers.MainController{}, "post:Add")
	beego.Router("/list", &controllers.MainController{}, "get:List")
	beego.Router("/show", &controllers.MainController{}, "get:Show")
	beego.Router("/del", &controllers.MainController{}, "post:Del")
}
